﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using NHibernate;
namespace NCS_CS
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ISession s=testNh.getsession();
            NCS.method m = (NCS.method)s.Get(typeof(NCS.method), 5);
            XmlSerializer xmlserializer = new XmlSerializer();
            xmlserializer.Serialize(m, m.cname+".xml");
            //System.Diagnostics.Debug.Print(m.cname);
            //Application.Run(new Form2());
        }
    }
}
